package com.lw.kotlin_mvvm_master.api

import com.lw.common.network.request.ApiResponse
import com.lw.kotlin_mvvm_master.model.LoginRequest
import com.lw.kotlin_mvvm_master.model.LoginModel
import retrofit2.http.Body
import retrofit2.http.POST

interface ApiService {

    @POST("/api/Login/Login")
    suspend fun geUserInfo(@Body loginRequest: LoginRequest): ApiResponse<LoginModel>

    @POST("/api/Login/Login")
    suspend fun login(@Body loginRequest: LoginRequest): ApiResponse<LoginModel>
}